#!/usr/bin/env python3
# -*- coding: utf-8 -*-

'更高级的加盐算法'

import hmac

message = b'Hello,world!'
key = b'secret'
h = hmac.new(key,message,digestmod='MD5')
print(h.hexdigest()) # 21db988f124ebc9fade5492afb9df52d

